{% load i18n %}
{% load account_tags %}
{% load avatar_tags %}
{% load tagging_tags %}
{% load group_tags %}
{% load theme_tags %}

<div class="photo-right-profile clearfix">
    <div class="photo-avatar">{% avatar photo.member.username 50 %}</div>
    <div class="photo-profile-details">
        <h2>Taken By</h2>
        <a href="{% url profile_detail photo.member.username %}" title="{% user_display photo.member %}">{% user_display photo.member %}</a><br />
        {{ photo.date_taken|date }}<br />
        Viewed {{ photo.view_count }} times
    </div>
</div>

<div class="photo-right-tools">
    {% if photo.tags %}
        <h2>{% silk "tag_blue" %} Tags</h2>
        <ul>
            {% tags_for_object photo as tags %}
            {% for tag in tags %}
                <li><a href="/tags/{{ tag }}">{{ tag }}</a></li>
            {% endfor %}
        </ul>
        
        <div class="embed">
        <a href="#" id="embed-code-toggle">{% trans "Get Embed Code" %}</a>
             <div id="embed-code" style="display: none;">
                <textarea>
                    <a href="{{ host }}/photos/details/{{ photo.id }}"><img src="{{ host }}/{{ photo_url }}" alt="{{ photo.title }}"/></a>
                </textarea>
            </div>
        </div>
        
    {% endif %}
    
    {% if is_me %}
        <form action="{% groupurl photo_destroy group id=photo.id %}" method="POST">
            {% csrf_token %}
            <label>Delete Photo</label> <input type="image" src="{{ STATIC_URL }}pinax/img/silk/icons/delete.png" border="0" title="{% trans "Delete Photo" %}" />
                        <input type="hidden" name="action" value="delete"/>
        </form>
        
        <a href="{% groupurl photo_edit group id=photo.id %}">Edit Photo</a>
        
    {% endif %}
    
</div>

<div class="photo-right-exif">
</div>
